public class Test {
    public static void running(IRunable iRunable){
        iRunable.Run();
    }
    public static void flying(IFlyable iFlyable){
        iFlyable.Fly();
    }
    public static void swimming(ISwimable iSwimable){
        iSwimable.swim();
    }



    public static void main(String[] args) {

        Dog dog = new Dog("旺财",10);
        Fish fish = new Fish("鱼",1);
        Bird bird = new Bird("啾啾",2);
        running(bird);
        running(dog);
    }
}
